<template>
  <div class="device height100">
    <Table :tableLoading="laoding" @add="add"></Table>
    <Form ref="formRef" :formList="formList" @success="getList"></Form>
  </div>
</template>
<script setup>
  defineProps({
    formList:{
      type:Array,
      default:() => []
    }
  })
  const laoding = ref(false);
  const getList = (e) => {
    laoding.value = true;
    setTimeout(() => {
      laoding.value = false;
    }, 300);
  }
  getList();
  const formRef = ref();
  const add = (e) => {
    formRef.value.init(e)
  }
</script>
<style scoped>
/* @import url(); 引入css类 */
</style>
